package com.wowo.aoon;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BoyApp {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("boy/app.xml");
        JapanGirl japanGirl = applicationContext.getBean(JapanGirl.class);
        System.out.println(japanGirl);
        KoreaGirl koreaGirl = applicationContext.getBean(KoreaGirl.class);
        System.out.println(koreaGirl);

        Boy boy = applicationContext.getBean(Boy.class);
        boy.getGirl().Kiss();
    }
}
